A Camera is a rectangular viewer that looks into the room and captures what it sees.


Properties


AutoTracking

bool AutoTracking

Gets/sets whether this camera will automatically follow the player character's position in the room.


Height

int Height

Gets/sets the camera's capture height in room coordinates.


Width

int Width

Gets/sets the camera's capture width in room coordinates.


X

int X

Gets/sets the X position of this camera in the room. Setting a value will also disable auto-tracking.


Y

int Y

Gets/sets the Y position of this camera in the room. Setting a value will also disable auto-tracking.


Methods


Create

static Camera Create()

Creates a new camera.


Delete

void Delete()

Removes an existing camera.


SetAt

void SetAt(int x, int y)

Changes the camera's position in the room and disables automatic tracking of the player character.


SetSize

void SetSize(int width, int height)

Changes the camera's capture dimensions, in room coordinates.